public class Employee {
    //员工
    private String name;
    private String address;
    private int id;
    private double wages;//工资
    private int seniority;//工龄

    public Employee(String name, String address, int id, double wages, int seniority) {
        this.name = name;
        this.address = address;
        this.id = id;
        this.wages = wages;
        this.seniority = seniority;
    }

    public void setWages(double wages) {
        this.wages = wages;
    }

    public double getWages() {
        return this.wages;
    }

    public void add() {
        this.wages = this.wages * 1.1;
    }
}
